package com.learn.spring.java_config;

import com.learn.spring.bean.Dog;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;

/**
 * @author wangxing
 * @version 2020/6/12 12:25 Administrator
 */
@Configuration
@ComponentScan(basePackages = {"com.learn.spring.bean"},
        includeFilters = {
                @ComponentScan.Filter(type = FilterType.ANNOTATION, value = {Repository.class})
//                ,@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,value = {Dog.class})
        }, useDefaultFilters = false)
public class MainComponentScanIncludeConfig {
}
